package com.intellij.licensecommon.message.impl;

import com.intellij.licensecommon.data.LicenseImpl;


public abstract class b extends TaggedMessage {
    private final LicenseImpl license;

    protected b(LicenseMessageData data) {
        super(data);
        this.license = data.a();
    }

    protected b(String paramString, LicenseImpl license) {
        super(paramString);
        this.license = license;
    }

    protected b(LicenseImpl paramf) {
        this.license = paramf;
    }

    public boolean equals(Object paramObject) {
        if (this == paramObject) {
            return true;
        }
        if (paramObject == null) {
            return false;
        }
        if (!getClass().equals(paramObject.getClass())) {
            return false;
        }
        b localb = (b) paramObject;
        return this.license == null ? false : localb.license == null ? true : this.license.equals(localb.license);
    }

    public int hashCode() {
        return this.license != null ? this.license.hashCode() : 0;
    }

    public LicenseImpl getLicense() {
        return this.license;
    }

    public String toString() {
        return getClass().getName() + "{" + TaggedMessage() + ":" + this.license + "}";
    }
}
